"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
// TS方法装饰器的定义
// args数组第一个元素如果是静态方法是构造函数，动态方法是原型对象
// const showDecorator: MethodDecorator = (...args: any[]) => {
//   args[0].name = 'zrf'
// }
var showDecorator = function (target, propertyKey, descriptor) {
    descriptor.value = function () {
        console.log('方法体重写');
    };
};
{
    var User2_1 = /** @class */ (function () {
        function User2() {
        }
        User2.prototype.show = function () {
            console.log('我是show方法体');
        };
        __decorate([
            showDecorator,
            __metadata("design:type", Function),
            __metadata("design:paramtypes", []),
            __metadata("design:returntype", void 0)
        ], User2_1.prototype, "show", null);
        return User2;
    }());
    new User2_1().show();
    // console.log(new User2().name);
}
